function submit() {
    var imgURL;
    var title;
    var name;
    var description;
    var restaurant;
    
	var form = document.getElementsByName('postEntryForm');
	var imgURL = form.imgURL.value;
    var title = form.title.value;
    var name = form.name.value;
    var description = form.description.value;
    var restaurant = form.restaurant.value;
    
    return window.location('/postentry?form='+form+'&imgURL='+imgURL+'&title='+title+'&name='+name+'&description='+description+'&restaurant='+restaurant);
}